package com.itheima.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;

import java.io.Serializable;
import java.time.LocalDate;
import java.util.Date;

/**
 * 预约设置
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class OrderSetting implements Serializable{
    private Integer id ;
   @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate orderDate;//预约设置日期
    private int number;//可预约人数
    private int reservations ;//已预约人数


    public OrderSetting(LocalDate orderDate, int number) {
        this.orderDate = orderDate;
        this.number = number;
    }
}
